import sqlite3

conn = sqlite3.connect('test.db')
c = conn.cursor()
files = open("FUNDS.sql", encoding="utf-8")
sql_data = files.read()
c.executescript(sql_data)
conn.commit()
conn.close()
